from tensorboardX import SummaryWriter
from logger import Logger
from config.config import config
# path
cf = config()
log_path = cf.getConfig('path', 'log_path')
pic_path = cf.getConfig('path', 'picture_path')
mod_path = cf.getConfig('path', 'model_path')
summary_path = cf.getConfig('path', 'summary_path')

# log
log = Logger(log_path + 'run.log')
log.write("Run.py从这又重新启动一次", '')
pseudorandom_log = Logger(log_path + 'pseudorandom.log')
pseudorandom_log.write("Run.py从这又重新启动一次", '')

# train
TRAIN_EPOCHES = cf.getConfig('train', 'TRAIN_EPOCHES', 'int')
MAX_STEP = cf.getConfig('train', 'MAX_STEP', 'int')
SAMPLE_BATCH_SIZE = cf.getConfig('dqn', 'SAMPLE_BATCH_SIZE', 'int')
TEST_EPOCH_ITER = cf.getConfig('train', 'TEST_EPOCH_ITER', 'int')

writer = SummaryWriter(summary_path)